﻿using System.Collections.Generic;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Linq;

namespace ClientOverflow.DataObjects
{
    /// <summary>
    /// Department class represents the department table in the database. The class maintain the relationship
    /// with users table.
    /// </summary>
    [ActiveRecord]
    public class Department : ActiveRecordLinqBase<Department>
    {
        [PrimaryKey]
        public int ID { get; set; }

        [Property]
        public string Name { get; set; }

        [HasMany]
        public IList<User> Users { get; set; }
    }
}